from django.urls import path

from . import views

app_name = "works"

urlpatterns = [
    path("get-token/", views.get_token),
    # 作品
    path("add-works/", views.add_works),
    path("get-works-by-tag-name/", views.get_works_by_tag),
    path("get-works-by-id/", views.get_works_by_id),
    path("get-works-by-user-id/", views.get_works_by_user_id),
    path("modify-work/", views.modify_work),
    path("delete-work/", views.delete_work),
    path("search-work/", views.search_work),
    # 分类
    path("get-tags/", views.get_tag),
    path("get-user-tag/", views.get_user_tag),
    path("add-user-tag/", views.add_user_tag),
    path("delete-user-tag/", views.delete_user_tag),
    # 评论
    path("add-comment/", views.add_comment),
    path("get-works-comment/", views.get_works_comment),
    # 收藏
    path("get-works-collection/", views.get_works_collection),
    path("modify-collection/", views.modify_collection),
    path("get-user-collection/", views.get_user_collection),
    path("delete-collection/", views.delete_collection),
]
